package com.xianyun.site.support.convertor;

import com.xianyun.site.support.domain.model.SmtpMessage;
import com.xianyun.site.support.dto.clientobject.SmtpMessageCO;
import org.springframework.beans.BeanUtils;

/**
 * @author mac_zyj
 */
public class SmtpConvertor {
    public static SmtpMessage toEntity(SmtpMessageCO message){
        SmtpMessage smtpMessage = new SmtpMessage();
        BeanUtils.copyProperties(message, smtpMessage);
        return smtpMessage;
    }
}
